package Package.GenericClass;

public class GenericClass<T> {
private T t;

    public GenericClass(T t) {
        this.t = t;
    }

    public GenericClass() {
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }
}
//修饰符 class 类名<类型> { }